package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    NursingPlan selectById(Integer id);

    List<NursingPlan> selectAll();


//    @Options(useGeneratedKeys = true, keyProperty = "id")
    void insert(NursingPlan nursingPlan);


    void update(NursingPlan nursingPlan);


    void delete(Integer id);

    Page<NursingPlanVo> queryPage(String name, Integer status);

    @Select("select id from nursing_plan where plan_name =#{name}")
    Integer selectByName(String name);


    Integer selectLevelById(Integer id);
}